package com.chuangke.security.authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * 自定义令牌对象
 *
 * @author chuangke
 * @date Nov 21, 2018
 */
public class UserPassAuthenticatioToken extends CommonAuthenticatioToken {

	
    private static final long serialVersionUID = 7343689886686962224L;
	
	private String captcha ;
	
	private HttpServletRequest request ;

	public UserPassAuthenticatioToken(Object principal, Object credentials) {
		super(principal, credentials);
	}
	
	public UserPassAuthenticatioToken(Object principal, Object credentials, String captcha,HttpServletRequest request) {
		super(principal, credentials);
		this.captcha = captcha ;
		this.request = request ;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public HttpServletRequest getRequest() {
		return request;
	}

	public void setRequest(HttpServletRequest request) {
		this.request = request;
	}

}
